package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品图片对象 goods_pic
 *
 * @author ruoyi
 * @date 2025-05-08
 */
public class GoodsPic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public GoodsPic() {
    }

    public GoodsPic(Long spuId, String imageType, String imagePath) {
        this.spuId = spuId;
        this.imageType = imageType;
        this.imagePath = imagePath;
    }

    /** 图片编号 */
    private Long picId;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private Long spuId;

    /** 图片类型（0代表主图 1代表描述的图） */
    @Excel(name = "图片类型", readConverterExp = "0=代表主图,1=代表描述的图")
    private String imageType;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imagePath;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setPicId(Long picId)
    {
        this.picId = picId;
    }

    public Long getPicId()
    {
        return picId;
    }

    public void setSpuId(Long spuId)
    {
        this.spuId = spuId;
    }

    public Long getSpuId()
    {
        return spuId;
    }

    public void setImageType(String imageType)
    {
        this.imageType = imageType;
    }

    public String getImageType()
    {
        return imageType;
    }

    public void setImagePath(String imagePath)
    {
        this.imagePath = imagePath;
    }

    public String getImagePath()
    {
        return imagePath;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("picId", getPicId())
            .append("spuId", getSpuId())
            .append("imageType", getImageType())
            .append("imagePath", getImagePath())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
